const arr = []
const RouteUtil = {
    forward(pageUrl, params) {
        if (!pageUrl) {
            return
        }
        if (params) {
            arr.length = 0
            arr.push(pageUrl)
            arr.push('?')
            for (let key in params) {
                arr.push('&')
                arr.push(key)
                arr.push('=')
                arr.push(params[key])
            }
            pageUrl = arr.join('')
        }
        uni.navigateTo({
            url: pageUrl
        })
    },


    LIVE_ROOM: '/pages/liveRoom/Index',//直播间
    VIDEO_PLAY: '/pages/video/Play',//播放视频
    LOGIN: '/pages/login/login2',//登录
    LIVE_CHOOSE_SDK: '/pages/live/sdk',//选择sdk
    LIVE_TX_SDK: '/pages/live/txsdk',//腾讯sdk
    LIVE_AGORA_SDK: '/pages/live/agorasdk',//声网sdk
    TIM: '/pages/TUI-Conversation/conversation/conversation',//腾讯IM
}
export default RouteUtil
